package ex1;

import ex1.Count;
import ex1.CountWithBug;
import junit.framework.TestCase;

public class NodeCoverageCases extends TestCase{


	// Test Requirement: {1,2,3,4,5,6,7}
	// Minimum Test required: 1: [1,2,3,4,6,2,3,4,5,7]
	// Covers [1,2,3,4,5,6,7]
	// 
	

	public void T1() {
		int result = Count.count(new int[]{1,-1,-1,2});
		
		assertEquals(result, 1);
	}
	

	public void T1WithBug() {
		int result = CountWithBug.count(new int[]{1,-1,-1,2});
		
		assertEquals(result, 1);
	}

}
